package log;

import java.time.LocalDateTime;

class UserVisitSummary {
    private String userId;
    private String username;
    private int totalVisits;            // 总访问次数
    private LocalDateTime firstVisit;   // 首次访问时间

    public UserVisitSummary(String userId, String username, int totalVisits, LocalDateTime firstVisit, LocalDateTime lastVisit) {
        this.userId = userId;
        this.username = username;
        this.totalVisits = totalVisits;
        this.firstVisit = firstVisit;
        this.lastVisit = lastVisit;
    }

    private LocalDateTime lastVisit;    // 最后一次访问时间
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getTotalVisits() {
        return totalVisits;
    }

    public void setTotalVisits(int totalVisits) {
        this.totalVisits = totalVisits;
    }

    public LocalDateTime getFirstVisit() {
        return firstVisit;
    }

    public void setFirstVisit(LocalDateTime firstVisit) {
        this.firstVisit = firstVisit;
    }

    public LocalDateTime getLastVisit() {
        return lastVisit;
    }

    public void setLastVisit(LocalDateTime lastVisit) {
        this.lastVisit = lastVisit;
    }



    // 构造方法 + getter 略
}